package ch5;

import java.io.*;

public class FileWrite {

	public static void main(String[] args) {
		try {
			// OutputStream out = new FileOutputStream("e:/java61/test.txt");
			OutputStream out = new FileOutputStream("e:/java61/test.txt", false);
			out.write(10000);
			out.write(65);
			out.write(66);
			out.write(67);

			out.write('\r');// 换行
			out.write('\n');
			String str = "谢旭是个big帅哥";
			out.write(str.getBytes());
			out.close();// 没有处理好异常！！！！！
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
